@extends('backend.admin-master') @section('style') @endsection @section('site-title') {{__('All Donations')}} @endsection @section('content')
@include('backend/partials/message') @if($errors->any())
    @foreach($errors->all() as $error)
  • {{$error}}
  • @endforeach
@endif

{{__('All Donations')}}

@php $b=0; @endphp @foreach($all_donations as $key => $donation)
@foreach($donation as $data) @endforeach
{{__('ID')}} {{__('Title')}} {{__('Image')}} {{__('Amount')}} {{__('Raised')}} {{__('Date')}} {{__('Status')}} {{__('Action')}}
{{$data->id}} {{$data->title}}
@php $event_img = get_attachment_image_by_id($data->image,'thumbnail',true); @endphp @if (!empty($event_img))
@endif
{{site_currency_symbol()}}{{$data->amount}} {{site_currency_symbol()}}{{$data->raised ? $data->raised : 0}} {{date("d - M - Y", strtotime($data->created_at))}} @if($data->status == 'draft') {{__('Draft')}} @else {{__('Publish')}} @endif
@csrf
@php $b++; @endphp @endforeach
@endsection @section('script') @endsection