@extends('admin.layouts.app') @section('title',$pageTitle) @push('styles') @include('datatable.css.data_table_css') @endpush @section('container')
@if(auth()->user()->can('bank_create')) Create Bank @endif

{{ $pageTitle }}

@if (session('success'))
{{ session('success') }}
@endif @if (session('error'))
{{ session('error') }}
@endif
{{--

Striped rows

Use .table-striped to add zebra-striping to any table row within the <tbody>.

--}}
@php $total = 0; @endphp @foreach ($banks as $bank) @php if ($bank->status == 1){ $total += $bank->amount; } @endphp @endforeach
SL Bank Name Branch Account Name Account Number Opening Balance Amount Status Action
{{ $loop->iteration }} {{ $bank->bank_name }} {{ $bank->branch }} {{ $bank->ac_name }} {{ $bank->ac_number }} {{ number_format($bank->opening_balance,2) }} {{ number_format($bank->amount,2) }} @if ($bank->status == 1) Active @else Inactive @endif @if(auth()->user()->can('bank_edit')) @endif
Total {{ number_format($total,2) }}
@endsection @push('scripts') @include('datatable.js.data_table_js') {{-- {!! $dataTable->scripts() !!} --}} {{-- {{ $dataTable->scripts(attributes: ['type' => 'module']) }} --}} @endpush