@extends('layouts.app')
@section('page_title', __('app.help'))
@section('content')
<div class="row g-3">
    @foreach([
        ['icon'=>'fa-gas-pump','title'=>__('app.how_sale'),'body'=>__('app.how_sale_text'),'url'=>route('fuel-sales.create')],
        ['icon'=>'fa-truck-droplet','title'=>__('app.how_purchase'),'body'=>__('app.how_purchase_text'),'url'=>route('purchases.create')],
        ['icon'=>'fa-hand-holding-dollar','title'=>__('app.how_receive'),'body'=>__('app.how_receive_text'),'url'=>route('customer-receipts.create')],
        ['icon'=>'fa-calendar-check','title'=>__('app.how_close_day'),'body'=>__('app.how_close_day_text'),'url'=>route('daily-closing.create')],
    ] as $item)
    <div class="col-md-6"><div class="top-card p-4 h-100"><i class="fa-solid {{ $item['icon'] }} fs-1 text-success"></i><h4 class="fw-bold mt-3">{{ $item['title'] }}</h4><p class="text-muted">{{ $item['body'] }}</p><a class="btn btn-success" href="{{ $item['url'] }}">{{ __('app.open_page') }}</a></div></div>
    @endforeach
</div>
@endsection
